package com.wangcj.abstractfactory;

public class Main {
    public static void main(String[] args) {
        AbstractFactory abstractFactory = new MagicFactory();
        Food food = abstractFactory.createFood();
        food.eat();
        Vehicle vehicle = abstractFactory.createVehicle();
        vehicle.go();
        Weapon weapon = abstractFactory.createWeapon();
        weapon.shoot();
    }
}
